package com.glsc.ngateway.common.base.domainmapper;


import com.glsc.ngateway.common.base.domain.mysql.gateway.other.TradeSeatHistory;
import com.glsc.ngateway.common.api.platform.dto.other.TradeSeatHistoryDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author libj
 * @date 2022/04/19
 * 交易单元租用流水表
 */
@Mapper(componentModel = "spring")
public interface TradeSeatHistoryMapper {

    TradeSeatHistoryMapper INSTANCE = Mappers.getMapper(TradeSeatHistoryMapper.class);

    /**
     * 实体类转换，如字段映射名称不一致或者需要格式转换，可以通过expression表达式处理
     * @param domain
     * @return
     */
    TradeSeatHistoryDto domain2dto(TradeSeatHistory domain);
    List<TradeSeatHistoryDto> domain2dto(List<TradeSeatHistory> domain);

    TradeSeatHistory dto2domain(TradeSeatHistoryDto dto);
    List<TradeSeatHistory> dto2domain(List<TradeSeatHistoryDto> dto);

}



